import 'package:flutter/material.dart';
import 'package:get/get_rx/src/rx_types/rx_types.dart';
import 'package:industry_net/base/component/list/section.dart';
import 'package:industry_net/pages/home/main/models/home_menu.dart';
import 'package:industry_net/pages/home/main/models/home_news.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';

part 'models/swiper.dart';

class HomeState {
  final refreshCtrl = RefreshController();
  final scrollController = ScrollController();
  final searchCtrl = TextEditingController();
  FocusNode searchNode = FocusNode();
  GlobalKey addKey = GlobalKey();
  var searchText = ''.obs;
  var alpha = 0.obs;
  RxList<HomeSwiper> swiperItems = [].cast<HomeSwiper>().obs;
  int pageIndex = 1;
  List<HomeNewsModel> news = [];
  List<SectionModel> newsSource = [];
  List<HomeMenuModel> menu = [];
}
